import request from '@/common/request'

export function villageList(data) {
    return request({
        url: '/apiadmin/village/index',
        method: 'get',
        params: data
    })
}

/***
 * 获取乡镇
 */
export function villageAll(data) {
    return request({
        url: '/apiadmin/village/all',
        method: 'get',
        params: data
    })

}
    export function getList(data) {
        return request({
            url: '/apiadmin/village/index',
            method: 'get',
            params: data
        })
    }
    
    
    export function postSave(data) {
        return request({
            url: '/apiadmin//village/save',
            method: 'post',
            data: data
        })
    }
    
    export function getissue(data) {
        return request({
            url: '/apiadmin/village/getlist',
            method: 'post',
            data: data
        })
    }
    
    export function Bupdate(data) {
        return request({
            url: '/apiadmin/village/addtask',
            method: 'post',
            data: data
        })
    }
    
    export function taskDelete(data) {
        return request({
            url: '/apiadmin/village/taskDelete',
            method: 'post',
            data: data
        })
    }
    
    export function gettask() {
        return request({
            url: '/apiadmin/village/gettasklist',
            method: 'post',
        })
    }
    
    export function getInstitution(data) {
        return request({
            url: '/apiadmin/village/getInstitution',
            method: 'post',
            data: data
        })
    }
    
    
    export function getlocking(data) {
        return request({
            url: '/apiadmin/village/getlocking',
            method: 'get',
            params: data
        })
    }
    
    /***
     * 获取乡镇
     */
    export function getVillage(data) {
        return request({
            url: '/apiadmin/village/getVillage',
            method: 'get',
            params: data
        })
    }
    
    /***
     * 获取绑定乡镇
     */
    export function bindVillageList(data) {
        return request({
            url: '/apiadmin/village/getBindVillageList',
            method: 'get',
            params: data
        })
    }
    
    /***
     * 获取乡镇绑定人员
     */
    export function bindPersonnelList(data) {
        return request({
            url: '/apiadmin/village/getBindPersonnelList',
            method: 'get',
            params: data
        })
    }
    
    
    export function treeselect(data) {
        return request({
            url: '/apiadmin/village/treeselect',
            method: 'get',
            params: data
        })
    }
    
    export function getFind(data) {
        return request({
            url: '/apiadmin/village/getFind',
            method: 'get',
            params: data
        })
    }
    
    export function getVillageFind(data) {
        return request({
            url: '/apiadmin/village/getVillageFind',
            method: 'get',
            params: data
        })
}










